import request from '@/utils/request'

// 查询仪器列表
export function listData(query) {
  return request({
    url: '/instrument/data/list',
    method: 'get',
    params: query
  })
}

// 查询仪器详细
export function getData(instrumentId) {
  return request({
    url: '/instrument/data/' + instrumentId,
    method: 'get'
  })
}

// 新增仪器
export function addData(data) {
  return request({
    url: '/instrument/data',
    method: 'post',
    data: data
  })
}

// 修改仪器
export function updateData(data) {
  return request({
    url: '/instrument/data',
    method: 'put',
    data: data
  })
}

// 删除仪器
export function delData(instrumentId) {
  return request({
    url: '/instrument/data/' + instrumentId,
    method: 'delete'
  })
}
